//
// Created by Administrator on 2025-07-24.
//
#pragma once
#include "../common.h"

class MysqlRecord
{
public:
    MysqlRecord(const std::map<std::string, std::string> &record) : _record(record) {}

    const std::string &operator[](const std::string &s)
    {
        auto it = _record.find(s);
        if (it != _record.end())
        {
            return it->second;
        }
        static const std::string empty;
        return empty;
    }

protected:
    const std::map<std::string, std::string> &_record;
};
